<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript" src="../scripts/itsm/news/topicMain.js"></script>
</head>
<body>
<div id="topicMainGridToolbar" style="padding: 0px;display: none;">
&nbsp;<a onclick="itsm.news.topicMain.openAddWin()" class="easyui-linkbutton" id="topicMainGrid_add" icon="icon-add" plain="true">添加</a>
<a onclick="itsm.news.topicMain.openEditWin()" class="easyui-linkbutton" id="topicMainGrid_edit" icon="icon-edit" plain="true">修改</a>
<a onclick="itsm.news.topicMain.deleteTopic()" class="easyui-linkbutton" id="topicMainGrid_del" icon="icon-cancel" plain="true">删除</a>
<a onclick="itsm.news.topicMain.openSearchWin()" class="easyui-linkbutton" id="topicMainGrid_search" icon="icon-search" plain="true">搜索</a>
</div>
<table id='topicMainGrid'></table>
<div id='topicMainPager'></div>

<%-- 添加、编辑 --%>
<div title="添加/编辑栏目" id="topicMain_add_win" class="easyui-window" closed="true" collapsible="false" modal="true" minimizable="false" maximizable="false" collapsible="false" style="width:400px; height:auto;padding:3px">
	<form id="topicMain_add_form">	
	<input name="topicDTO.topicId" id="topicMain_topicId" type="hidden" />
	<table>
		<tr>
			<td>栏目名称</td>
			<td><input name="topicDTO.topicName" id="topicMain_topicName"  class="easyui-validatebox input" required="true"/></td>
		</tr>
		<tr>
			<td>排序</td>
			<td><input name="topicDTO.topicOrder" id="topicMain_topicOrder"  class="easyui-validatebox input" value="0" required="true"/></td>
		</tr>
		<tr>
			<td>类型</td>
			<td>
				<select name="topicDTO.topicType" id="topicMain_topicType">
					<option value="">--请选择--</option>
					<option value="menu">菜单</option>
					<option value="other">其他</option>
				</select>
			</td>
		</tr>
		<tr>
			<td>描述</td>
			<td>
				<textarea style="height: 50px;width: 98%" id="topicMain_description" name="topicDTO.description"></textarea>
			</td>
		</tr>
		
		<tr>
			<td colspan="2">
				<a class="easyui-linkbutton" icon="icon-save" id="link_user_save" href="javascript:itsm.news.topicMain.saveTopic()">保存</a>
			</td>
		</tr>
	</table>
	</form>
</div>

<%-- 栏目搜索 --%>
<div title="栏目搜索 " id="topicMain_search_win" class="easyui-window" closed="true" collapsible="false" modal="false" minimizable="false" maximizable="false" collapsible="false" style="width:400px; height:auto;padding:3px">
	<form id="topicMain_search_form">	
	<table>
		<tr>
			<td>栏目名称</td>
			<td><input name="topicDTO.topicName" class="input"/></td>
		</tr>
		<tr>
			<td>描述</td>
			<td>
				<input name="topicDTO.description" class="input"/>
			</td>
		</tr>
		
		<tr>
			<td colspan="2">
				<a class="easyui-linkbutton" icon="icon-save" href="javascript:itsm.news.topicMain.searchTopic()">搜索</a>
			</td>
		</tr>
	</table>
	</form>
</div>


</body>
</html>